package com.sm.service;

import java.util.List;

import com.sm.model.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sm.dao.TeacherMapper;

@Service
public class TeacherService {

	@Autowired
	private TeacherMapper teacherMapper;
	
	/**
	 *	通过老师id查询老师信息
	 * @param teacherId		老师id
	 * @return
	 */
	public Teacher selectByPrimaryKey(Integer teacherId) {
		return teacherMapper.selectByPrimaryKey(teacherId);
	}
	
	public List<Teacher> selectAll(){
		return teacherMapper.selectAll();
	}
}
